home *** CD-ROM | disk | FTP | other *** search
- To use Query.Com:
-
- in a batch file, type the command Query followed by a prompt,
- then a redirect symbol and where to redirect it to.
-
- EX: Query What is your favorit color > color.bat
-
- The system will ask the question and put the answer into
- color.bat. Color.bat will include the statement
-
- Set ask= (color you chose)
-
- You can then use the if statement to act upon it.
-
- Example of how to use:
-
- Query What is your name? > temp.bat
- Call temp.bat
- Echo Good morning, %ask%
- if %ask% == "Lee" echo hi boss
- del temp.bat